package  
{
	import org.flixel.FlxSprite;
	import org.flixel.FlxState;
	import org.flixel.FlxG;
	import org.flixel.FlxButton;
	
	/**
	 * ...
	 * @author ...
	 */
	public class TitleState extends FlxState
	{
		
		[Embed(source = '../lib/ShadowlessTS.png')] protected var splashPic:Class;
		[Embed(source = '/org/flixel/data/cursor.png')] protected var cursorPic:Class;
		[Embed(source = '../lib/StartButton.png')] protected var startPic:Class;
		
		private var startButton:FlxButton;
		
		public function TitleState() 
		{
			this.add(new FlxSprite(0, 0, splashPic));
			
			startButton = new FlxButton(302, 312, goToGame);
			startButton.loadGraphic(new FlxSprite(0,0, startPic));
			this.add(startButton);
			
			FlxG.mouse.show(cursorPic);
		}
		
		protected function goToGame():void {
			FlxG.state = new PlayState;
		}
		
	}

}